package com.qf.electronic.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.electronic.dto.UserDto;
import com.qf.electronic.dto.UserStateDto;
import com.qf.electronic.pojo.Menu;
import com.qf.electronic.pojo.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.qf.electronic.vo.UserVo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wu
 * @since 2023-05-04
 */
public interface IUserService extends IService<User>, UserDetailsService {

    List<Menu> getUserMenus(String username);

    Page<UserVo> getUsers(UserDto userDto);

    Boolean changeUserState(UserStateDto stateDto);

    List<User> getExportUsers(Map<String, Object> params, int page, int pageSize);

    long getExportUserCount(Map<String, Object> params);

}
